import './heading.css'

export default () => {
  const element = document.createElement('h2')

  element.textContent = 'Hello world'
  element.classList.add('heading')
  element.addEventListener('click', () => {
    alert('Hello webpack')
  })


  const input = document.createElement('input')
  input.addEventListener('keyup', (e) => {
    // console.log(e.target.value)
  })


  return input
}